package com.log.james.service;

import com.log.james.entity.WebFlow;
import com.log.james.mapper.FlowDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;

@Service
public class FlowService implements FlowDao,Serializable{
    @Autowired
    private FlowDao flowDao;

    public List<WebFlow> findFlowByTime(Date startTime, Date endTime){
        return flowDao.findFlowByTime(startTime, endTime);
    }

    @Override
    public Map<String, Object> getWebFlow(Date time) {
        Map<String,Object> map = flowDao.getWebFlow(time);
        return map;
    }
}
